"""
Data Embedding 主入口文件
"""
import uvicorn
from .api.routes import app
from .config.settings import settings


def main():
    """主函数"""
    print("启动 Data Embedding API 服务...")
    print(f"服务地址: http://{settings.api_host}:{settings.api_port}")
    print(f"API文档: http://{settings.api_host}:{settings.api_port}/docs")
    
    uvicorn.run(
        app,
        host=settings.api_host,
        port=settings.api_port,
        reload=settings.debug
    )


if __name__ == "__main__":
    main() 